package com.itheima.test_abstract.myfinal;


public class TestFinal {
    public static void main(String[] args) {
        final int A = 10;
        final int MAX = 20;
        final int MAX_VALUE = 30;
        System.out.println(A);
        System.out.println(MAX);
        System.out.println(MAX_VALUE);

        final Student student = new Student();
        student.setName("张三");
        System.out.println(student.getName());
        student.setName("李四");
        System.out.println(student.getName());
    }
}

class Student{
    final int a = 10;
    private  String name;

    public Student() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
